Optimal. Leaf size=155 \[ -\frac {\sqrt {a x^2+b x^3+c x^4}}{3 x^4}-\frac {b \sqrt {a x^2+b x^3+c x^4}}{12 a x^3}+\frac {\left (3 b^2-8 a c\right ) \sqrt {a x^2+b x^3+c x^4}}{24 a^2 x^2}-\frac {b \left (b^2-4 a c\right ) \tanh ^{-1}\left (\frac {x (2 a+b x)}{2 \sqrt {a} \sqrt {a x^2+b x^3+c x^4}}\right )}{16 a^{5/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.16, antiderivative size = 155, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 5, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.208, Rules used = {1934, 1965, 12,
1918, 212} \begin {gather*} -\frac {b \left (b^2-4 a c\right ) \tanh ^{-1}\left (\frac {x (2 a+b x)}{2 \sqrt {a} \sqrt {a x^2+b x^3+c x^4}}\right )}{16 a^{5/2}}+\frac {\left (3 b^2-8 a c\right ) \sqrt {a x^2+b x^3+c x^4}}{24 a^2 x^2}-\frac {b \sqrt {a x^2+b x^3+c x^4}}{12 a x^3}-\frac {\sqrt {a x^2+b x^3+c x^4}}{3 x^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 212
Rule 1918
Rule 1934
Rule 1965
Rubi steps
\begin {align*} \int \frac {\sqrt {a x^2+b x^3+c x^4}}{x^5} \, dx &=-\frac {\sqrt {a x^2+b x^3+c x^4}}{3 x^4}+\frac {1}{6} \int \frac {b+2 c x}{x^2 \sqrt {a x^2+b x^3+c x^4}} \, dx\\ &=-\frac {\sqrt {a x^2+b x^3+c x^4}}{3 x^4}-\frac {b \sqrt {a x^2+b x^3+c x^4}}{12 a x^3}-\frac {\int \frac {\frac {1}{2} \left (3 b^2-8 a c\right )+b c x}{x \sqrt {a x^2+b x^3+c x^4}} \, dx}{12 a}\\ &=-\frac {\sqrt {a x^2+b x^3+c x^4}}{3 x^4}-\frac {b \sqrt {a x^2+b x^3+c x^4}}{12 a x^3}+\frac {\left (3 b^2-8 a c\right ) \sqrt {a x^2+b x^3+c x^4}}{24 a^2 x^2}+\frac {\int \frac {3 b \left (b^2-4 a c\right )}{4 \sqrt {a x^2+b x^3+c x^4}} \, dx}{12 a^2}\\ &=-\frac {\sqrt {a x^2+b x^3+c x^4}}{3 x^4}-\frac {b \sqrt {a x^2+b x^3+c x^4}}{12 a x^3}+\frac {\left (3 b^2-8 a c\right ) \sqrt {a x^2+b x^3+c x^4}}{24 a^2 x^2}+\frac {\left (b \left (b^2-4 a c\right )\right ) \int \frac {1}{\sqrt {a x^2+b x^3+c x^4}} \, dx}{16 a^2}\\ &=-\frac {\sqrt {a x^2+b x^3+c x^4}}{3 x^4}-\frac {b \sqrt {a x^2+b x^3+c x^4}}{12 a x^3}+\frac {\left (3 b^2-8 a c\right ) \sqrt {a x^2+b x^3+c x^4}}{24 a^2 x^2}-\frac {\left (b \left (b^2-4 a c\right )\right ) \text {Subst}\left (\int \frac {1}{4 a-x^2} \, dx,x,\frac {x (2 a+b x)}{\sqrt {a x^2+b x^3+c x^4}}\right )}{8 a^2}\\ &=-\frac {\sqrt {a x^2+b x^3+c x^4}}{3 x^4}-\frac {b \sqrt {a x^2+b x^3+c x^4}}{12 a x^3}+\frac {\left (3 b^2-8 a c\right ) \sqrt {a x^2+b x^3+c x^4}}{24 a^2 x^2}-\frac {b \left (b^2-4 a c\right ) \tanh ^{-1}\left (\frac {x (2 a+b x)}{2 \sqrt {a} \sqrt {a x^2+b x^3+c x^4}}\right )}{16 a^{5/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.45, size = 130, normalized size = 0.84 \begin {gather*} \frac {\sqrt {x^2 (a+x (b+c x))} \left (\sqrt {a} \sqrt {a+x (b+c x)} \left (-8 a^2+3 b^2 x^2-2 a x (b+4 c x)\right )+3 b \left (b^2-4 a c\right ) x^3 \tanh ^{-1}\left (\frac {\sqrt {c} x-\sqrt {a+x (b+c x)}}{\sqrt {a}}\right )\right )}{24 a^{5/2} x^4 \sqrt {a+x (b+c x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.04, size = 234, normalized size = 1.51
method | result | size |
risch | \(-\frac {\left (8 a c \,x^{2}-3 b^{2} x^{2}+2 a b x +8 a^{2}\right ) \sqrt {x^{2} \left (c \,x^{2}+b x +a \right )}}{24 x^{4} a^{2}}+\frac {\left (\frac {b \ln \left (\frac {2 a +b x +2 \sqrt {a}\, \sqrt {c \,x^{2}+b x +a}}{x}\right ) c}{4 a^{\frac {3}{2}}}-\frac {b^{3} \ln \left (\frac {2 a +b x +2 \sqrt {a}\, \sqrt {c \,x^{2}+b x +a}}{x}\right )}{16 a^{\frac {5}{2}}}\right ) \sqrt {x^{2} \left (c \,x^{2}+b x +a \right )}}{x \sqrt {c \,x^{2}+b x +a}}\) | \(158\) |
default | \(\frac {\sqrt {c \,x^{4}+b \,x^{3}+a \,x^{2}}\, \left (12 c \,a^{\frac {3}{2}} \ln \left (\frac {2 a +b x +2 \sqrt {a}\, \sqrt {c \,x^{2}+b x +a}}{x}\right ) b \,x^{3}+6 c \sqrt {c \,x^{2}+b x +a}\, b^{2} x^{4}-12 c \sqrt {c \,x^{2}+b x +a}\, a b \,x^{3}-3 \sqrt {a}\, \ln \left (\frac {2 a +b x +2 \sqrt {a}\, \sqrt {c \,x^{2}+b x +a}}{x}\right ) b^{3} x^{3}-6 \left (c \,x^{2}+b x +a \right )^{\frac {3}{2}} b^{2} x^{2}+6 \sqrt {c \,x^{2}+b x +a}\, b^{3} x^{3}+12 \left (c \,x^{2}+b x +a \right )^{\frac {3}{2}} a b x -16 \left (c \,x^{2}+b x +a \right )^{\frac {3}{2}} a^{2}\right )}{48 x^{4} \sqrt {c \,x^{2}+b x +a}\, a^{3}}\) | \(234\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.35, size = 272, normalized size = 1.75 \begin {gather*} \left [-\frac {3 \, {\left (b^{3} - 4 \, a b c\right )} \sqrt {a} x^{4} \log \left (-\frac {8 \, a b x^{2} + {\left (b^{2} + 4 \, a c\right )} x^{3} + 8 \, a^{2} x + 4 \, \sqrt {c x^{4} + b x^{3} + a x^{2}} {\left (b x + 2 \, a\right )} \sqrt {a}}{x^{3}}\right ) + 4 \, \sqrt {c x^{4} + b x^{3} + a x^{2}} {\left (2 \, a^{2} b x + 8 \, a^{3} - {\left (3 \, a b^{2} - 8 \, a^{2} c\right )} x^{2}\right )}}{96 \, a^{3} x^{4}}, \frac {3 \, {\left (b^{3} - 4 \, a b c\right )} \sqrt {-a} x^{4} \arctan \left (\frac {\sqrt {c x^{4} + b x^{3} + a x^{2}} {\left (b x + 2 \, a\right )} \sqrt {-a}}{2 \, {\left (a c x^{3} + a b x^{2} + a^{2} x\right )}}\right ) - 2 \, \sqrt {c x^{4} + b x^{3} + a x^{2}} {\left (2 \, a^{2} b x + 8 \, a^{3} - {\left (3 \, a b^{2} - 8 \, a^{2} c\right )} x^{2}\right )}}{48 \, a^{3} x^{4}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {x^{2} \left (a + b x + c x^{2}\right )}}{x^{5}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {\sqrt {c\,x^4+b\,x^3+a\,x^2}}{x^5} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________